package de.tabuma.wsdl2xform.xform;

/**
 *
 * @author $Author: alefen $
 * @version $Revision: 1.2 $
 * @since $Date: 2009/12/30 01:10:56 $
 */
public class constants {
    public static final String XFORM_NAV = "xformproject_nav";

    public static final int NAV_NULL = 0;
    public static final int NAV_FIRST_STEP = 1;
    public static final String NAV_NEXT_STEP = "nextStep";
    public static final int NAV_SECOND_STEP = 2;
    public static final int NAV_SHOW_PROJECT = 3;
    
    public static final String SHOW_PROJECT_MODE = "showProjectMode";
    public static final int SHOW_PROJECT_MODE_NULL = 0;
    public static final int SHOW_PROJECT_MODE_XFORM = 1;
    public static final int SHOW_PROJECT_MODE_HTML = 2;
    public static final int SHOW_PROJECT_MODE_WSDL = 3;

    public static final String PROJECT_NAME = "xformProjectname";
    public static final String PROJECT_DESCRIPTION = "xformDescription";
    public static final String PROJECT_METHOD = "projectMethod";
    public static final String WSDL_URL = "xformWSDLUrl";
    public static final String METHOD_LIST = "xformMethodList";

    public static final String T_DEFINITIONS = "tdefinitions";
    public static final String PROJECT_LIST = "projectList";
    
    public static final String PROJECT_ID = "projectID";
    public static final String PROJECT = "project";
    public static final String T_DEFINITIONS_KEY = "definitionskey";

    public static final String PROPERTIES_PAGE = "de/tabuma/wsdl2xform/xform/properties";

    public static String getValue(String key) {
        return de.tabuma.wsdl2xform.constants.getValueFromProperties(PROPERTIES_PAGE, key);
    }
    public static Integer getValueAsInteger(String key) {
        String value = getValue(key);
        return Integer.valueOf(value);
    }
}